<%@ include file="sites/ad_header.jsp" %>
<%
	if(session.getAttribute("user") ==null){
		response.sendRedirect("LoadIndex.jsp");
	}
%>
<div class="r-body">

	<div class="author-profile">
	<%! 
	String accountName,userName,userPhone,userMail,accountPwd;
	Object userGender;
	%>
	<%
		if(session.getAttribute("user")!=null){
			accountName=(String)session.getAttribute(("user"));
			 userName=(String)session.getAttribute("userName");
			 userGender=session.getAttribute("userGender");
			 userPhone=(String )session.getAttribute("userPhone");
			 userMail=(String )session.getAttribute("userMail");
			 accountPwd=(String)session.getAttribute("accountPwd");		 
	%>
	<div class="page-title">
					<p>Genderal Account</p>
				</div>
	<div class="frm-action">
	
		<form method="post" action="#">
		<table border="0" cellpadding="5">
			<tr>
				<td width="200;">Fullname</td>
				<td><input type="text" class="accountUserName" name="fullname" value="<%=username%>"/></td>
				<!-- <td width="150"><input type="submit" value="Update" name="cmd_accName" class="cmd_accName"/></td> -->
			</tr>
			<tr>
				<td>Gender</td>
				<td><select name="userGender" class="userGender">
						<%
							if(userGender.equals("1")){
						%>
							<option value="1" selected="selected">Male</option>
						<% 
							}else{
						%>
							<option value="0" selected="selected">Female</option>
						<% 
							}
						%>
						
				</select></td>
				<!-- <td width="150"><input type="submit" value="Update" name="cmd_userGender" class="cmd_userGender"/></td> -->
			</tr>
			<tr>
				<td>E-mail Address</td>
				<td><input type="text" class="userMail" name="userMail" value="<%=userMail%>"/></td>
			<!-- 	<td width="150"><input type="submit" value="Update" name="cmd_userMail" class="cmd_userMail"/></td> -->
			</tr>
			
			<tr>
				<td>Phone Number</td>
				<td><input type="text" class="userPhone" name="userPhone"  value="<%=userPhone%>"/></td>
				<!-- <td width="150"><input type="submit" value="Update" name="cmd_userPhone" class="cmd_userPhone"/></td> -->
			</tr>
			<tr>
				<td width="200;">Username</td>
				<td><input type="text" class="accountUserName" name="username"  value="<%=accountName%>"/></td>
				<!-- <td width="150"><input type="submit" value="Update" name="cmd_accName" class="cmd_accName"/></td> -->
			</tr>
			<tr>
				<td>Password</td>
				<td><input type="password" class="accountPassword" name="pwd" value="<%=accountPwd%>"/></td>
				<!-- <td><input type="button" name="eidt_pass" class="eidt_pass" value="Edit"/></td>
 -->			</tr>
			<tr class="tr-conf">
				<td>Confirm Password</td>
				<td><input type="password" class="acc_conf" name="acc_conf"/></td>
				<!-- <td><input type="submit" name="pass_save" class="pass_save" value="Save"></td> -->
			</tr>
		</table>
		</form>
	<%
		}
		 
	%>
		</div>
	</div>
</div>
<style type="text/css">
	.myhide{display:none;}
</style>
<script type="text/javascript">
	$(function(){
		$(".tr-conf").addClass("myhide");
		$(".eidt_pass").click(function(){
			$(".tr-conf").removeClass("myhide");
		});
		disable();
	});
	function disable(){
		disable=$("input");
		for(var i=0;i<disable.length;i++){
			disable[i].disabled=true;
		}
	}
</script>
</body>
</html>